<?php


namespace App\Provider;


use App\Service\Dict;
use EchoPHP\Foundation\ServiceProvider;

/**
 * 字典翻译服务提供器
 * Class DictServiceProvider
 * @package App\ServiceProvider
 */
class DictServiceProvider extends ServiceProvider {
    protected $defer = true;

    public function register() {
        $this->app->singleton('dict', function () {
            return new Dict();
        });
    }

    public function provides() {
        return ['dict'];
    }
}